package com.adingxiong.cft.config;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

/**
 * @ClassName QuartzAuto
 * @Description TODO
 * @Author xiongchao
 * @Date 2021/3/26 13:25
 **/
@Component
@Slf4j
public class QuartzAuto implements CommandLineRunner {

    @Autowired
    private InitQuartz quartz;

    @Override
    public void run(String... args) throws Exception {
        quartz.startJob();
        log.info("启动调度任务成功");
    }
}
